package com.weirn.spring.velocity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by yp-tc-2563 on 2017/9/27.
 */
@Controller
public class HelloWorldAction {

    @RequestMapping(value = "/showUser")
    public void showUser(HttpServletResponse response) throws IOException {
        response.getWriter().print("<h1>Hello SpringMVC</h1>");
        response.flushBuffer();
    }
}
